//
//  ERResourceModel.m
//  ExchangeRate
//
//  Created by lanou on 15/10/22.
//  Copyright © 2015年 方义强. All rights reserved.
//

#import "ERResourceModel.h"

@implementation ERResourceModel

- (instancetype)init
{
    if (self = [super init])
    {
        _fields = [[ERFieldsModel alloc] init];
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"fields"]) {
        
        [_fields setValuesForKeysWithDictionary:value];
    }
    else
    {
        [super setValue:value forKey:key];
    }
}

@end
